<script setup lang="ts">


import {useRoute} from "vue-router";

let route = useRoute();
</script>

<template>
  <!-- 通过{{$route.params.属性}} 获取到路径参数中的参数 -->
  <h1>我是Haha {{$route.params.id}} ==> {{$route.params.name}} ==> {{$route.params.age}}</h1>

  <div>
    route.params.id: {{route.params.id}}
    route.params.name: {{route.params.name}}
    route.params.age: {{route.params.age}}
  </div>
</template>

<style scoped>

</style>